body {
    font-size: small;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}
p {
    user-select: text;
    -webkit-user-select: text;
}
h5 {
    margin-top: 5px;
    margin-bottom: 1px;
}
ul {
    list-style: none;
}

.header {
    margin-bottom: 20px;
    background-image: -webkit-gradient(linear,0% 0,0% 100%,from(#F2F2F2),to(#DDDDDD));
    padding: 20px 0;
    border-bottom: 1px solid #DDD;
}

.header h1 {
    font-family: Ubuntu, Arial, sans-serif;
    width: 960px;
    height: 30px;
    margin: 0px auto;
    color: #5C6166;
    text-shadow: #888 2px 2px 5px;
}

.header-shadow {
    width: 100%;
    margin-right: 0;
    height: 8px;
    position: absolute;
    top: 70px;
    left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, .3)), to(transparent));
        -webkit-mask-box-image: -webkit-gradient(linear, left top, right top, 
        color-stop(0.0, rgba(0,0,0,0)), color-stop(0.5, rgba(0,0,0,.8)), color-stop(1.0, rgba(0,0,0,0)));
}

.container {
    width: 960px;
    margin: 0 auto;
}

.content {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 3px 20px rgba(0, 0, 0, 0.3);
}

/* Form related */
form {
    margin-bottom: 1ex;
}
input:not([type]), input[type="text"], input[type="url"], textarea, .ui-combobox {
    font-family: "DejaVu Sans Mono", monospace!important;
    margin-left: -1px;
}
input:not([type]):not(.ui-combobox-input), input[type="text"], input[type="url"] {
    width: 70%;
    padding: 0.51em 0;
}
textarea {
    width: 70%;
    height: 100px;
    resize: none;
}
input[type="url"] {
    margin-bottom: 40px;  /* Make place for URL validation message */
}
.ui-buttonset {
    margin-right: 0;
}
.button-test {
    padding-bottom: 2px;
    margin-left: -0.4em!important;
}
input[type="file"] {
    display: none;
}

/** Tabs */
#nav-tabs .ui-tabs-nav {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* nav-tab-rules */
#nav-tab-rules.ui-tabs-panel {
    padding: 0px;
}

#nav-tab-rules .toolbar {
    padding: 0 4px;
    margin: 0;
    -webkit-box-shadow: inset 0 3px 0;
    background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #F2F2F2 100%);
    border-bottom: 1px solid #DDD;
    border-top-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
    /* background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #DDDDDD 100%); */
}

#rule-list-section {
    margin: 5px 5px;
}

#rule-list-section h3 {
    margin: 0;
    padding: 2px 5px;
    color: #888888;
    background: #EEEEEE;
    border-bottom: 3px solid #DDDDDD;
}

.selectable-draggable-list {
    padding: 0;
    margin: 0;
}

.selectable-draggable-list li {
    background-color: #F7F7F7;
    border-bottom: 1px solid #DDDDDD;
    height: 24px;
    line-height: 24px;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.selectable-draggable-list li .ui-icon {
    display: inline-block;
    margin-top: 2px;
}

.selectable-draggable-list .ui-selecting {
    background: #ddd;
}
.selectable-draggable-list .ui-selected {
    background: #ccc;
}

/* Scrollbar */
::scrollbar,::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::scrollbar-track,::-webkit-scrollbar-track {
    background-color: #aaa;
    border-radius: 5px;
}
::scrollbar-thumb,::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 5px;
}
::scrollbar-thumb:hover,::-webkit-scrollbar-thumb:hover {
    background-color: #17a;
}

/* Combobox */
.ui-autocomplete {
    max-height: 30ex;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}
.ui-combobox {
    position: relative;
    display: inline-block;
}
.ui-combobox-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    margin-left: -1px;
    padding: 0;
}
.ui-combobox-input {
    margin: 0;
    padding: 0.3em;
}
